# Maintainer: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Wijnand Modderman <wijanand+aur@archlinux.nl>

pkgname=cksfv
pkgver=1.3.15
pkgrel=1
pkgdesc="SFV (Simple File Verification) Checker"
arch=('loong64' 'x86_64')
url="http://zakalwe.fi/~shd/foss/cksfv"
license=('GPL')
depends=('glibc')
source=(http://zakalwe.fi/~shd/foss/cksfv/files/$pkgname-$pkgver.tar.bz2{,.asc})
sha256sums=('a173be5b6519e19169b6bb0b8a8530f04303fe3b17706927b9bd58461256064c'
            'SKIP')
validpgpkeys=('047C1A34F60CE92CAFECBB3C3EFC3C14B1F25E35') # Heikki Orsila (2017) <heikki.orsila@iki.fi>

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make BINDIR="${pkgdir}"/usr/bin MANDIR="${pkgdir}"/usr/share/man install
#   chmod 644 "${pkgdir}"/usr/share/man/man1/$pkgname.1
}
